//
//  RepairCarCheckView.m
//  HondaPro_2
//
//  Created by Eric on 13-6-3.
//  Copyright (c) 2013年 glendale. All rights reserved.
//

#import "RepairCarCheckView.h"

@implementation RepairCarCheckView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        
        [self setContentSize:CGSizeMake(self.frame.size.width, 720)];
        
        _vc = [[mm_repairCarCheckViewControllerTmp alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, 720)];
        _vc.dicRepairCarCheckData = self.dataDic;
        [_vc.viewPictureBtn addTarget:self action:@selector(viewPictureBtnPress) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:_vc];
    }
    return self;
}

-(void)viewPictureBtnPress{
    if ([self.RepairCarCheckDelegate respondsToSelector:@selector(viewPictureBtnClicked)]) {
        [self.RepairCarCheckDelegate viewPictureBtnClicked];
    }
}

-(void)setDataDic:(NSDictionary *)dataDic{
    _dataDic = dataDic;
    _vc.dicRepairCarCheckData = self.dataDic;
}

@end
